import { createRouter, createWebHashHistory, RouteRecordRaw } from "vue-router";
import { clientSetting } from "@/config/client-setting";
import { microAppRoutes } from '@/router/modules/micro-app-route'
import {meta} from "@typescript-eslint/parser";

/**
 * meta属性可选参数示意
 * @param title 路由中文名
 * @param requiresAuth 是否鉴权
 * @param isCache 是否缓存
 * @param hideMenu 隐藏菜单
 */

const routesPage: Array<RouteRecordRaw> = [
  {
    path: "/lose",
    name: "lose",
    redirect: "/lose/goodsLost",
    meta: {
      title: "失物招领管理",
    },
    children: [
      {
        path: "/lose/goodsLost",
        name: "/lose/goodsLost",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/lose/goodsLost/index.vue"
          ),
        meta: { title: "遗失物品登记", requiresAuth: true },
      },
      {
        path: "/lose/goodsInOut",
        name: "/lose/goodsInOut",
        component: () =>
          import(/* webpackChunkName: "login" */ "@/views/lose/goodsInOut.vue"),
        meta: { title: "入/出库管理", requiresAuth: true },
      },
      {
        path: "/lose/goodsReg",
        name: "/lose/goodsReg",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/lose/goodsReg/index.vue"
          ),
        meta: { title: "捡拾物品登记", requiresAuth: true },
      },
      {
        path: "/lose/goodsType",
        name: "/lose/goodsType",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/lose/goodsType/index.vue"
          ),
        meta: { title: "物品类型管理", requiresAuth: true },
      },
      {
        path: "/lose/goodsReceive",
        name: "/lose/goodsReceive",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/lose/goodsReceive/index.vue"
          ),
        meta: { title: "物品领取记录", requiresAuth: true },
      },
      {
        path: "/lose/goodsDerelict",
        name: "/lose/goodsDerelict",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/lose/goodsDerelict.vue"
          ),
        meta: { title: "无主物处置", requiresAuth: true },
      },
      {
        path: "/lose/goodsRecycle",
        name: "/lose/goodsRecycle",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/lose/goodsRecycle/index.vue"
          ),
        meta: { title: "失物/拾物回收站", requiresAuth: true },
      },
    ],
  },
  {
    path: "/rep",
    name: "rep",
    redirect: "/rep/company",
    meta: {
      title: "报修规则管理",
    },
    children: [
      {
        path: "/rep/member",
        name: "/rep/member",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/rep/member/index.vue"
          ),
        meta: { title: "维修成员管理", requiresAuth: true },
      },
      {
        path: "/rep/company",
        name: "/rep/company",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/rep/company/index.vue"
          ),
        meta: { title: "维修单位管理", requiresAuth: true },
      },
      {
        // 7-17增加
        path: "/rep/problem",
        name: "/rep/problem",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/rep/problem/index.vue"
          ),
        meta: { title: "报修问题管理", requiresAuth: true },
      },
    ],
  },
  {
    path: "/pax",
    name: "pax",
    redirect: "/pax/deposit",
    meta: {
      title: "旅客服务管理",
    },
    children: [
      {
        path: "/pax/deposit",
        name: "/pax/deposit",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/pax/deposit/index.vue"
          ),
        meta: { title: "物品寄存管理", requiresAuth: true },
      },
      {
        path: "/pax/flight",
        name: "/pax/flight",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/pax/flight/index.vue"
          ),
        meta: { title: "不正常航班旅客服务", requiresAuth: true },
      },
      {
        path: "/pax/ask",
        name: "/pax/ask",
        component: () =>
          import(/* webpackChunkName: "login" */ "@/views/pax/ask/index.vue"),
        meta: { title: "问询管理", requiresAuth: true },
      },
      {
        path: "/pax/loveService",
        name: "/pax/loveService",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/pax/loveService/index.vue"
          ),
        meta: { title: "爱心服务管理", requiresAuth: true },
      },
    ],
  },
  {
    path: "/construction",
    name: "construction",
    redirect: "/construction/project-application",
    meta: {
      title: "施工协同管理",
    },
    children: [
      {
        path: "/construction/project-application",
        name: "/construction/project-application",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/construction/project-application/index.vue"
          ),
        meta: { title: "施工项目管理-申请", requiresAuth: true },
      },
      {
        path: "/construction/add",
        name: "/construction/add",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/construction/project-application/add.vue"
          ),
        meta: { title: "新增施工项目申请", requiresAuth: true },
      },
      {
        path: "/construction/details",
        name: "/construction/details",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/construction/project-application/details.vue"
          ),
        meta: { title: "项目详情", requiresAuth: true },
      },
      {
        path: "/construction/project-review",
        name: "/construction/project-review",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/construction/project-application/index.vue"
          ),
        meta: { title: "施工项目管理-审核", requiresAuth: true },
      },
      {
        path: "/construction/review",
        name: "/construction/review",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/construction/project-application/review.vue"
          ),
        meta: { title: "审核项目", requiresAuth: true },
      },
      {
        path: "/construction/project-daily",
        name: "/construction/project-daily",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/construction/project-daily/index.vue"
          ),
        meta: { title: "每日施工申请", requiresAuth: true },
      },
      {
        path: "/construction/project-daily/apply",
        name: "/construction/project-daily/apply",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/construction/project-daily/addApply.vue"
          ),
        meta: { title: "新增每日施工申请", requiresAuth: true },
      },

      // {
      //   path: "/construction/project-daily/emergencyApply",
      //   name: "/construction/project-daily/emergencyApply",
      //   component: () =>
      //     import(
      //       /* webpackChunkName: "login" */ "@/views/construction/project-daily/emergencyApply.vue"
      //     ),
      //   meta: { title: "新增应急施工作业", requiresAuth: true },
      // },
      {
        path: "/construction/project-daily/detail",
        name: "/construction/project-daily/detail",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/construction/project-daily/detail.vue"
          ),
        meta: { title: "每日施工申请-详情", requiresAuth: true },
      },
      {
        path: "/construction/project-daily/edit",
        name: "/construction/project-daily/edit",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/construction/project-daily/edit.vue"
          ),
        meta: { title: "每日施工申请-编辑", requiresAuth: true },
      },
      {
        path: "/construction/project-daily/examine",
        name: "/construction/project-daily/examine",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/construction/project-daily/examine.vue"
          ),
        meta: { title: "每日施工申请-审核", requiresAuth: true },
      },
      {
        path: "/construction/project-supervise",
        name: "/construction/project-supervise",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/construction/project-supervise/index.vue"
          ),
        meta: { title: "施工监管", requiresAuth: true },
      },
      {
        path: "/construction/project-supervise/see",
        name: "/construction/project-supervise/see",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/construction/project-supervise/components/seedemo/index.vue"
          ),
        meta: { title: "查看", requiresAuth: true },
      },
      {
        path: "/construction/project-supervise/inspect",
        name: "/construction/project-supervise/inspect",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/construction/project-supervise/components/inspectdemo/index.vue"
          ),
        meta: { title: "检查", requiresAuth: true },
      },
      {
        path: "/construction/project-exception",
        name: "/construction/project-exception",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/construction/project-exception/index.vue"
          ),
        meta: { title: "施工异常管理", requiresAuth: true },
      },
      {
        path: "/construction/project-archives",
        name: "/construction/project-archives",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/construction/project-archives/index.vue"
          ),
        meta: { title: "施工档案管理", requiresAuth: false },
      },
      {
        path: "/construction/project-change",
        name: "/construction/project-change",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/construction/project-change/index.vue"
          ),
        meta: { title: "施工变更管理", requiresAuth: true },
      },
    ],
  },
  {
    path: "/keynoteResource",
    name: "keynoteResource",
    redirect: "/keynote/securityCheck",
    meta: {
      title: "重点资源分析",
    },
    children: [
      {
        path: "/keynote/carousel",
        name: "/keynote/carousel",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/keynote/carousel/index.vue"
          ),
        meta: { title: "重点区域监控分析", requiresAuth: true },
      },
      {
        path: "/keynote/checkIn",
        name: "/keynote/checkIn",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/keynote/checkIn/index.vue"
          ),
        meta: { title: "值机监控分析", requiresAuth: true },
      },
      {
        path: "/keynote/securityCheck",
        name: "/keynote/securityCheck",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/keynote/securityCheck/index.vue"
          ),
        meta: { title: "安检通道监控分析", requiresAuth: true },
      },
      {
        path: "/keynoteResource/passengerEnter",
        name: "/keynoteResource/passengerEnter",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/keynoteResource/passengerEnter/index.vue"
          ),
        meta: { title: "旅客进站数据采集", requiresAuth: true },
      },
      {
        path: "/keynoteResource/alarm",
        name: "/keynoteResource/alarm",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/keynoteResource/alarm/index.vue"
          ),
        meta: { title: "告警记录", requiresAuth: true },
      },
      {
        path: "/keynoteResource/service",
        name: "/keynoteResource/service",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/keynoteResource/service/index.vue"
          ),
        meta: { title: "服务资源信息采集", requiresAuth: true },
      },
      {
        path: "/keynote/boardingGate",
        name: "/keynote/boardingGate",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/keynote/boardingGate/index.vue"
          ),
        meta: { title: "登机口监控分析", requiresAuth: true },
      },
    ],
  },
  {
    path: "/inout",
    name: "inout",
    redirect: "/inout/personnel",
    meta: {
      title: "准入准出管理",
      isCache: true
    },
    children: [
      {
        path: "/inout/personnel/add",
        name: "/inout/personnel/add",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/inout/personnel/add.vue"
          ),
        meta: { title: "新增人员准入申请", requiresAuth: true,isCache: false },
      },
      {
        path: "/inout/personnel/detail",
        name: "/inout/personnel/detail",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/inout/personnel/detail.vue"
          ),
        meta: { title: "人员详情", requiresAuth: true,isCache: false },
      },
      {
        path: "/inout/personnel/editReject",
        name: "/inout/personnel/editReject",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/inout/personnel/editReject.vue"
          ),
        meta: { title: "人员-编辑驳回", requiresAuth: true,isCache: false },
      },
      {
        path: "/inout/goods/editReject",
        name: "/inout/goods/editReject",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/inout/goods/editReject.vue"
          ),
        meta: { title: "物品-编辑驳回", requiresAuth: true ,isCache: false},
      },
      {
        path: "/inout/activity/editReject",
        name: "/inout/activity/editReject",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/inout/activity/editReject.vue"
          ),
        meta: { title: "活动-编辑驳回", requiresAuth: true ,isCache: false},
      },
      {
        path: "/inout/personnel/delay",
        name: "/inout/personnel/delay",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/inout/personnel/delay.vue"
          ),
        meta: { title: "申请延期", requiresAuth: true,isCache: false },
      },
      {
        path: "/inout/personnel/out",
        name: "/inout/personnel/out",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/inout/personnel/out.vue"
          ),
        meta: { title: "申请准出", requiresAuth: true ,isCache: false},
      },
      {
        path: "/inout/goods/add",
        name: "/inout/goods/add",
        component: () =>
          import(/* webpackChunkName: "login" */ "@/views/inout/goods/add.vue"),
        meta: { title: "新增物品准入申请", requiresAuth: true ,isCache: false},
      },
      {
        path: "/inout/goods/detail",
        name: "/inout/goods/detail",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/inout/goods/detail.vue"
          ),
        meta: { title: "准入准出-物品详情", requiresAuth: true ,isCache: false},
      },
      {
        path: "/inout/activity/detail",
        name: "/inout/activity/detail",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/inout/activity/detail.vue"
          ),
        meta: { title: "准入准出-活动详情", requiresAuth: true ,isCache: false},
      },
      {
        path: "/inout/goods/delay",
        name: "/inout/goods/delay",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/inout/goods/delay.vue"
          ),
        meta: { title: "物品申请延期", requiresAuth: true ,isCache: false},
      },
      {
        path: "/inout/goods/out",
        name: "/inout/goods/out",
        component: () =>
          import(/* webpackChunkName: "login" */ "@/views/inout/goods/out.vue"),
        meta: { title: "物品申请准出", requiresAuth: true,isCache: false },
      },
      {
        path: "/inout/activity/add",
        name: "/inout/activity/add",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/inout/activity/add.vue"
          ),
        meta: { title: "新增活动准入申请", requiresAuth: true,isCache: false },
      },
      {
        path: "/inout/activity/delay",
        name: "/inout/activity/delay",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/inout/activity/delay.vue"
          ),
        meta: { title: "活动申请延期", requiresAuth: true,isCache: false },
      },
      {
        path: "/inout/activity/out",
        name: "/inout/activity/out",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/inout/activity/out.vue"
          ),
        meta: { title: "活动申请准出", requiresAuth: true ,isCache: false},
      },
      {
        path: "/approve/personnelIn",
        name: "/approve/personnelIn",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/inout/approve/personnelIn.vue"
          ),
        meta: { title: "审批-人员准入", requiresAuth: true ,isCache: false},
      },
      {
        path: "/approve/personnelDelay",
        name: "/approve/personnelDelay",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/inout/approve/personnelDelay.vue"
          ),
        meta: { title: "审批-人员延期", requiresAuth: true ,isCache: false},
      },
      {
        path: "/approve/personnelOut",
        name: "/approve/personnelOut",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/inout/approve/personnelOut.vue"
          ),
        meta: { title: "审批-人员准出", requiresAuth: true ,isCache: false},
      },
      {
        path: "/approve/goodsIn",
        name: "/approve/goodsIn",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/inout/approve/goodsIn.vue"
          ),
        meta: { title: "审批-物品准入", requiresAuth: true,isCache: false },
      },
      {
        path: "/approve/goodsDelay",
        name: "/approve/goodsDelay",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/inout/approve/goodsDelay.vue"
          ),
        meta: { title: "审批-物品延期", requiresAuth: true ,isCache: false},
      },
      {
        path: "/approve/goodsOut",
        name: "/approve/goodsOut",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/inout/approve/goodsOut.vue"
          ),
        meta: { title: "审批-物品准出", requiresAuth: true,isCache: false },
      },
      {
        path: "/approve/activityIn",
        name: "/approve/activityIn",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/inout/approve/activityIn.vue"
          ),
        meta: { title: "审批-活动准入", requiresAuth: true,isCache: false },
      },
      {
        path: "/approve/activityDelay",
        name: "/approve/activityDelay",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/inout/approve/activityDelay.vue"
          ),
        meta: { title: "审批-活动延期", requiresAuth: true,isCache: false },
      },
      {
        path: "/approve/activityOut",
        name: "/approve/activityOut",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/inout/approve/activityOut.vue"
          ),
        meta: { title: "审批-活动准出", requiresAuth: true,isCache: false },
      },
      {
        path: "/inout/personnel",
        name: "/inout/personnel",
        component: () =>
          import(
            /* webpackChunkName: "inout" */ "@/views/inout/personnel/index.vue"
          ),
        meta: { title: "人员准入申请", requiresAuth: true,isCache: true },
      },
      // {
      //   path: '/inout/personnel/out',
      //   name: '/inout/personnel/out',
      //   component: () => import(/* webpackChunkName: "inout" */ '@/views/inout/personnel/out/index.vue'),
      //   meta: { title: '人员准入申请', requiresAuth: true }
      // },
      {
        path: "/inout/personnel/delay/treated",
        name: "/inout/personnel/delay/treated",
        component: () =>
          import(
            /* webpackChunkName: "inout" */ "@/views/inout/personnel/delay/treated.vue"
          ),
        meta: { title: "查看已审批延期申请", requiresAuth: true ,isCache: false},
      },
      {
        path: "/inout/personnel/delay/untreated",
        name: "/inout/personnel/delay/untreated",
        component: () =>
          import(
            /* webpackChunkName: "inout" */ "@/views/inout/personnel/delay/untreated.vue"
          ),
        meta: { title: "查看待审批延期申请", requiresAuth: true ,isCache: false},
      },
      {
        path: "/inout/personnel/out/treated",
        name: "/inout/personnel/out/treated",
        component: () =>
          import(
            /* webpackChunkName: "inout" */ "@/views/inout/personnel/out/treated.vue"
          ),
        meta: { title: "查看已审批人员准出申请", requiresAuth: true,isCache: false },
      },
      {
        path: "/inout/personnel/out/untreated",
        name: "/inout/personnel/out/untreated",
        component: () =>
          import(
            /* webpackChunkName: "inout" */ "@/views/inout/personnel/out/untreated.vue"
          ),
        meta: { title: "查看待审批人员准出申请", requiresAuth: true ,isCache: false},
      },

      {
        path: "/inout/activity/delay/treated",
        name: "/inout/activity/delay/treated",
        component: () =>
          import(
            /* webpackChunkName: "inout" */ "@/views/inout/activity/delay/treated.vue"
          ),
        meta: { title: "查看已审批延期申请", requiresAuth: true ,isCache: false},
      },
      {
        path: "/inout/activity/delay/untreated",
        name: "/inout/activity/delay/untreated",
        component: () =>
          import(
            /* webpackChunkName: "inout" */ "@/views/inout/activity/delay/untreated.vue"
          ),
        meta: { title: "查看待审批延期申请", requiresAuth: true ,isCache: false},
      },
      {
        path: "/inout/activity/out/treated",
        name: "/inout/activity/out/treated",
        component: () =>
          import(
            /* webpackChunkName: "inout" */ "@/views/inout/activity/out/treated.vue"
          ),
        meta: { title: "查看已审批人员准出申请", requiresAuth: true,isCache: false },
      },
      {
        path: "/inout/activity/out/untreated",
        name: "/inout/activity/out/untreated",
        component: () =>
          import(
            /* webpackChunkName: "inout" */ "@/views/inout/activity/out/untreated.vue"
          ),
        meta: { title: "查看待审批人员准出申请", requiresAuth: true ,isCache: false},
      },

      {
        path: "/inout/goods/delay/treated",
        name: "/inout/goods/delay/treated",
        component: () =>
          import(
            /* webpackChunkName: "inout" */ "@/views/inout/goods/delay/treated.vue"
          ),
        meta: { title: "查看已审批延期申请", requiresAuth: true,isCache: false },
      },
      {
        path: "/inout/goods/delay/untreated",
        name: "/inout/goods/delay/untreated",
        component: () =>
          import(
            /* webpackChunkName: "inout" */ "@/views/inout/goods/delay/untreated.vue"
          ),
        meta: { title: "查看待审批延期申请", requiresAuth: true,isCache: false },
      },
      {
        path: "/inout/goods/out/treated",
        name: "/inout/goods/out/treated",
        component: () =>
          import(
            /* webpackChunkName: "inout" */ "@/views/inout/goods/out/treated.vue"
          ),
        meta: { title: "查看已审批人员准出申请", requiresAuth: true ,isCache: false},
      },
      {
        path: "/inout/goods/out/untreated",
        name: "/inout/goods/out/untreated",
        component: () =>
          import(
            /* webpackChunkName: "inout" */ "@/views/inout/goods/out/untreated.vue"
          ),
        meta: { title: "查看待审批人员准出申请", requiresAuth: true,isCache: false },
      },
      {
        path: "/inout/record",
        name: "/inout/record",
        component: () =>
          import(
            /* webpackChunkName: "inout" */ "@/views/inout/record/index.vue"
          ),
        meta: { title: "准入准出记录", requiresAuth: true },
      },
      {
        path: "/inout/goods",
        name: "/inout/goods",
        component: () =>
          import(
            /* webpackChunkName: "inout" */ "@/views/inout/goods/index.vue"
          ),
        meta: { title: "物品准入准出申请", requiresAuth: true },
      },
      {
        path: "/inout/approve",
        name: "/inout/approve",
        component: () =>
          import(
            /* webpackChunkName: "inout" */ "@/views/inout/approve/index.vue"
          ),
        meta: { title: "我的待办", requiresAuth: true },
      },
      {
        path: "/inout/activity",
        name: "/inout/activity",
        component: () =>
          import(
            /* webpackChunkName: "inout" */ "@/views/inout/activity/index.vue"
          ),
        meta: { title: "活动准入准出申请", requiresAuth: true },
      },
    ],
  },
  {
    path: "/eqpt",
    name: "eqpt",
    redirect: "/eqpt/houseVisual",
    meta: {
      title: "房屋资源管理",
    },
    children: [
      {
        path: "/eqpt/houseVisual",
        name: "/eqpt/houseVisual",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/eqpt/houseVisual/index.vue"
          ),
        meta: { title: "房屋可视化", requiresAuth: true },
      },
      {
        path: "/eqpt/houseManger",
        name: "/eqpt/houseManger",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/eqpt/houseManger/index.vue"
          ),
        meta: { title: "房屋动态管理", requiresAuth: true },
      },
      {
        path: "/eqpt/houseAnalyse",
        name: "/eqpt/houseAnalyse",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/eqpt/houseAnalyse/index.vue"
          ),
        meta: { title: "房屋统计分析", requiresAuth: true },
      },
    ],
  },
  {
    path: "/eqptt",
    name: "eqptt",
    redirect: "/eqpt/cartManager",
    meta: {
      title: "动态资源管理",
    },
    children: [
      {
        // 7-17增加
        path: "/eqpt/cartManager",
        name: "/eqpt/cartManager",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/eqpt/cartManager/index.vue"
          ),
        meta: { title: "手推车管理", requiresAuth: true },
      },
      {
        path: "/eqpt/cart",
        name: "/eqpt/cart",
        component: () =>
          import(/* webpackChunkName: "login" */ "@/views/eqpt/cart/index.vue"),
        meta: { title: "手推车区域管理", requiresAuth: true },
      },
      {
        path: "/eqpt/cartTrack",
        name: "/eqpt/cartTrack",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/eqpt/cartTrack/index.vue"
          ),
        meta: { title: "手推车历史轨迹查询", requiresAuth: true },
      },
      {
        path: "/eqpt/strap",
        name: "/eqpt/strap",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/eqpt/strap/index.vue"
          ),
        meta: { title: "隔离拉带管理", requiresAuth: true },
      },
      {
        path: "/eqpt/seat",
        name: "/eqpt/seat",
        component: () =>
          import(/* webpackChunkName: "login" */ "@/views/eqpt/seat/index.vue"),
        meta: { title: "旅客座椅管理", requiresAuth: true },
      },
      {
        path: "/eqpt/charge",
        name: "/eqpt/charge",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/eqpt/charge/index.vue"
          ),
        meta: { title: "充电桩管理", requiresAuth: true },
      },
      {
        path: "/eqpt/water",
        name: "/eqpt/water",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/eqpt/water/index.vue"
          ),
        meta: { title: "饮水机管理", requiresAuth: true },
      },
    ],
  },
  {
    path: "/eqpts",
    name: "eqpts",
    redirect: "/eqpt/type",
    meta: {
      title: "设施设备管理",
    },
    children: [
      {
        // 7-17增加
        path: "/eqpt/type",
        name: "/eqpt/type",
        component: () =>
          import(/* webpackChunkName: "login" */ "@/views/eqpt/type/index.vue"),
        meta: { title: "设备类型管理", requiresAuth: true },
      },
      {
        // 8-28增加
        path: "/eqpt/visual",
        name: "/eqpt/visual",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/eqpt/visual/index.vue"
          ),
        meta: { title: "设备设施可视化", requiresAuth: true },
      },
      {
        // 8-28增加
        path: "/eqpt/maintenanceRecords",
        name: "/eqpt/maintenanceRecords",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/eqpt/maintenanceRecords/index.vue"
          ),
        meta: { title: "历史维护记录", requiresAuth: true },
      },
    ],
  },
  {
    path: "/pax/grey",
    name: "pax/grey",
    redirect: "/pax/grey/type",
    meta: {
      title: "旅客灰名单管理",
    },
    children: [
      {
        path: "/pax/grey/type",
        name: "/pax/grey/type",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/pax/grey/type/index.vue"
          ),
        meta: { title: "灰名单种类设置", requiresAuth: true },
      },
      {
        path: "/pax/grey/list",
        name: "/pax/grey/list",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/pax/grey/list/index.vue"
          ),
        meta: { title: "灰名单管理", requiresAuth: true },
      },
    ],
  },
  {
    path: "/maintenance",
    name: "maintenance",
    redirect: "/maintenance/repairManagement",
    meta: {
      title: "设备维修管理",
    },
    children: [
      {
        path: "/maintenance/repairManagement",
        name: "/maintenance/repairManagement",
        component: () =>
          import(
            /* webpackChunkName: "inout" */ "@/views/maintenance/repairManagement/index.vue"
          ),
        meta: { title: "报修管理", requiresAuth: true },
      },
      {
        path: "/maintenance/repairacceptancemanagement",
        name: "/maintenance/repairacceptancemanagement",
        component: () =>
          import(
            /* webpackChunkName: "inout" */ "@/views/maintenance/repairacceptancemanagement/index.vue"
          ),
        meta: { title: "报修受理管理", requiresAuth: true },
      }
    ],
  },
  {
    path: "/event",
    name: "event",
    redirect: "/event/record",
    meta: {
      title: "事件管理(IMS)",
    },
    children: [
      {
        path: "/event/record",
        name: "eventRecord",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/event/record/index.vue"
          ),
        meta: { title: "普通事件记录", requiresAuth: false },
      },
      {
        path: "/event/know",
        name: "eventKnow",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/event/know/index.vue"
          ),
        meta: { title: "事件知识库管理", requiresAuth: true },
      },
      {
        path: "/event/detailEdit",
        name: "eventDetailEdit",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/event/know/detailEdit.vue"
          ),
        meta: { title: "详情", requiresAuth: true },
      },
    ],
  },
  {
    path: "/secure/archives",
    name: "secure/archives",
    redirect: "/secure/archives",
    meta: {
      title: "安全档案管理",
    },
    children: [
      {
        path: "/secure/archives/unitRecycle",
        name: "/secure/archives/unitRecycle",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/secure/archives/unitRecycle/index.vue"
            ),
        meta: { title: "外部单位基本信息回收站", requiresAuth: false },
      },{
        path: "/secure/archives/examineRecycle",
        name: "/secure/archives/examineRecycle",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/secure/archives/examineRecycle/index.vue"
            ),
        meta: { title: "安全检查记录回收站", requiresAuth: false },
      },{
        path: "/secure/archives/cultivateRecycle",
        name: "/secure/archives/cultivateRecycle",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/secure/archives/cultivateRecycle/index.vue"
            ),
        meta: { title: "安全培训记录回收站", requiresAuth: false },
      },
      {
        path: "/secure/archives/trainingRecords",
        name: "/secure/archives/trainingRecords",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/secure/archives/trainingRecords/index.vue"
            ),
        meta: { title: "安全培训记录管理", requiresAuth: false },
      },
      {
        path: "/secure/archives/unit",
        name: "/secure/archives/unit",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/secure/archives/unit/index.vue"
            ),
        meta: { title: "外部单位管理", requiresAuth: false},
      },
      {
        path: "/secure/archives/model",
        name: "/secure/archives/model",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/secure/archives/model/index.vue"
            ),
        meta: { title: "外部单位安全模版管理", requiresAuth:false },
      },
      {
        path: "/secure/archives/examineInfo",
        name: "/secure/archives/examineInfo",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/secure/archives/examineInfo/index.vue"
            ),
        meta: { title: "安全检查记录管理", requiresAuth: false },
      },{
        path: "/secure/archives/catalogue",
        name: "/secure/archives/catalogue",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/secure/archives/catalogue/index.vue"
            ),
        meta: { title: "外部单位安全档案目录管理", requiresAuth:false},
      },
    ],
  },
  {
    path: "/secure/defect",
    name: "secure/defect",
    redirect: "/secure/defect",
    meta: {
      title: "安全隐患管理",
    },
    children: [
      {
        path: "/secure/defect/checklistRecycle",
        name: "/secure/defect/checklistRecycle",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/secure/defect/checklistRecycle/index.vue"
            ),
        meta: { title: "安全隐患清单回收站", requiresAuth:false},
      },{
        path: "/secure/defect/assessRecycle",
        name: "/secure/defect/assessRecycle",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/secure/defect/assessRecycle/index.vue"
            ),
        meta: { title: "安全隐患考核回收站", requiresAuth:false },
      },{
        path: "/secure/defect/inventory",
        name: "/secure/defect/inventory",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/secure/defect/inventory/index.vue"
            ),
        meta: { title: "安全隐患清单管理", requiresAuth: false},
      },{
        path: "/secure/defect/inventory/add",
        name: "/secure/defect/inventory/add",
        component: () =>
            import(
                /* webpackChunkName: "login" */ "@/views/secure/defect/inventory/add.vue"
                ),
        meta: { title: "新建隐患", requiresAuth:false },
      },{
        path: "/secure/defect/assessRule",
        name: "/secure/defect/assessRule",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/secure/defect/assessRule/index.vue"
            ),
        meta: { title: "安全隐患考核规则管理", requiresAuth:false},
      },{
        path: "/secure/defect/assessInfo",
        name: "/secure/defect/assessInfo",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/secure/defect/assessInfo/index.vue"
            ),
        meta: { title: "安全隐患考核管理", requiresAuth: false},
      }
    ],
  },
  {
    path: "/systemMonitori",
    name: "systemMonitori",
    redirect: "/systemMonitori",
    meta: {
      title: "系统监测",
    },
    children: [
      {
        path: "/systemMonitori/userMonitor",
        name: "/systemMonitori/userMonitor",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/systemMonitori/userMonitor/index.vue"
            ),
        meta: { title: "用户监测", requiresAuth: true },
      },{
        path: "/systemMonitori/databaseMonitor",
        name: "/systemMonitori/databaseMonitor",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/systemMonitori/databaseMonitor/index.vue"
            ),
        meta: { title: "数据库监测测", requiresAuth: true },
      },{
        path: "/systemMonitori/operationMonitor",
        name: "/systemMonitori/operationMonitor",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/systemMonitori/operationMonitor/index.vue"
            ),
        meta: { title: "运行监测", requiresAuth: true },
      },{
        path: "/systemMonitori/serveMonitor",
        name: "/systemMonitori/serveMonitor",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/systemMonitori/serveMonitor/index.vue"
            ),
        meta: { title: "服务监测", requiresAuth: true },
      }
    ],
  },
  {
    path: "/collaborativeCommand",
    name: "collaborativeCommand",
    redirect: "/collaborativeCommand/eventEscalation",
    meta: {
      title: "协同指挥决策",
    },
    children: [
      {
        path: "/collaborativeCommand/eventEscalation",
        name: "/collaborativeCommand/eventEscalation",
        component: () =>
          import(
            /* webpackChunkName: "inout" */ "@/views/collaborativeCommand/eventEscalation/index.vue"
          ),
        meta: { title: "事件上报管理", requiresAuth: true },
      },

      {
        path: "/collaborativeCommand/eventEscalation/see",
        name: "/collaborativeCommand/eventEscalation/see",
        component: () =>
          import(
            /* webpackChunkName: "inout" */ "@/views/collaborativeCommand/eventEscalation/see.vue"
          ),
        meta: { title: "事件上报管理-查看", requiresAuth: true },
      },
      {
        path: "/collaborativeCommand/collaborativeDisposal",
        name: "/collaborativeCommand/collaborativeDisposal",
        component: () =>
          import(
            /* webpackChunkName: "inout" */ "@/views/collaborativeCommand/collaborativeDisposal/index.vue"
          ),
        meta: { title: "多部门协同处置", requiresAuth: true },
      },

      {
        path: "/collaborativeCommand/collaborativeDisposal/filling",
        name: "/collaborativeCommand/collaborativeDisposal/filling",
        component: () =>
          import(
            /* webpackChunkName: "inout" */ "@/views/collaborativeCommand/collaborativeDisposal/filling.vue"
          ),
        meta: { title: "多部门协同处置-填报", requiresAuth: true },
      },
      {
        path: "/collaborativeCommand/summaryEvaluation",
        name: "/collaborativeCommand/summaryEvaluation",
        component: () =>
          import(
            /* webpackChunkName: "inout" */ "@/views/collaborativeCommand/summaryEvaluation/index.vue"
          ),
        meta: { title: "事件总结评估", requiresAuth: true },
      },
      {
        path: "/collaborativeCommand/summaryEvaluation/see",
        name: "/collaborativeCommand/summaryEvaluation/see",
        component: () =>
          import(
            /* webpackChunkName: "inout" */ "@/views/collaborativeCommand/summaryEvaluation/see.vue"
          ),
        meta: { title: "事件总结评估-查看", requiresAuth: true },
      },
    ],
  },
  {
    path: "/eventManage",
    name: "eventManage",
    redirect: "/eventManage/eventaAnalysis",
    meta: {
      title: "事件管理(IMS)",
    },
    children: [
      {
        path: "/eventManage/eventaAnalysis",
        name: "/eventManage/eventaAnalysis",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/eventManage/eventaAnalysis/index.vue"
          ),
        meta: { title: "事件分析与评价", requiresAuth: true },
      },
      {
        path: "/eventManage/eventRules",
        name: "/eventManage/eventRules",
        component: () =>
          import(
            /* webpackChunkName: "login" */ "@/views/eventManage/eventRules/index.vue"
          ),
        meta: { title: "事件规则管理", requiresAuth: true },
      },

    ],
  },
  {
    path: "/monitor",
    name: "monitor",
    meta: {
      title: "航站楼运行数据可视化",
      requiresAuth: true
    },
    component: () =>
      import(
        /* webpackChunkName: "login" */ "@/views/monitor/fusion/vsualization/index.vue"
      ),
  },
  {
    path: "/knowledge/space",
    name: "knowledge-space",
    component: () =>
      import(
        /* webpackChunkName: "login" */ "@/views/knowledge/space/index.vue"
        ),
    meta: { title: "知识空间管理", requiresAuth: false },
  },
  {
    path: "/knowledge/file",
    name: "knowledge-file",
    component: () =>
      import(
        /* webpackChunkName: "login" */ "@/views/knowledge/file/index.vue"
        ),
    meta: { title: "知识文件管理", requiresAuth: false },
  },
  {
    path: "/knowledge/contract",
    name: "knowledge-contract",
    component: () =>
      import(
        /* webpackChunkName: "login" */ "@/views/knowledge/contract/index.vue"
        ),
    meta: { title: "合约文件管理", requiresAuth: false },
  },
  {
    path: "/knowledge/recycle",
    name: "knowledge-recycle",
    component: () =>
      import(
        /* webpackChunkName: "login" */ "@/views/knowledge/recycle/index.vue"
        ),
    meta: { title: "知识库回收站", requiresAuth: false },
  },
  {
    path: "/knowledge/search",
    name: "knowledge-search",
    component: () =>
      import(
        /* webpackChunkName: "login" */ "@/views/knowledge/search/index.vue"
        ),
    meta: { title: "全文检索", requiresAuth: false },
  },
  {
    path: "/knowledge/standards",
    name: "knowledge-standards",
    component: () =>
      import(
        /* webpackChunkName: "login" */ "@/views/knowledge/standards/index.vue"
        ),
    meta: { title: "工作标准管理", requiresAuth: false },
  },
  {
    path: "/quality/schedule",
    name: "quality-schedule",
    component: () =>
      import(
        /* webpackChunkName: "login" */ "@/views/quality/schedule/index.vue"
        ),
    meta: { title: "排班管理", requiresAuth: false },
  },{
    path: "/quality/programme/add",
    name: "quality-schedule-programmeAdd",
    component: () =>
      import(
        /* webpackChunkName: "login" */ "@/views/quality/programme/add.vue"
        ),
    meta: { title: "排班方案", requiresAuth: false },
  },{
    path: "/quality/programme/details",
    name: "quality-schedule-programmeDetails",
    component: () =>
      import(
        /* webpackChunkName: "login" */ "@/views/quality/programme/details.vue"
        ),
    meta: { title: "排班方案", requiresAuth: false },
  },
  {
    path: "/quality/schedulePerson",
    name: "quality-schedulePerson",
    component: () =>
        import(
            /* webpackChunkName: "login" */ "@/views/quality/schedulePerson/index.vue"
            ),
    meta: { title: "员工信息管理", requiresAuth: false },
  },
  {
    path: "/quality/scheduleClass",
    name: "quality-scheduleClass",
    component: () =>
        import(
            /* webpackChunkName: "login" */ "@/views/quality/scheduleClass/index.vue"
            ),
    meta: { title: "班种管理", requiresAuth: false },
  },
  {
    path: "/quality/scheduleGroup",
    name: "quality-scheduleGroup",
    component: () =>
        import(
            /* webpackChunkName: "login" */ "@/views/quality/scheduleGroup/index.vue"
            ),
    meta: { title: "班组管理", requiresAuth: false },
  },
  {
    path: "/quality/attendanceManger",
    name: "quality-attendanceManger",
    component: () =>
        import(
            /* webpackChunkName: "login" */ "@/views/quality/attendanceManger/index.vue"
            ),
    meta: { title: "考勤管理", requiresAuth: false },
  },
  {
    path: "/quality/performanc",
    name: "quality-performanc",
    component: () =>
        import(
            /* webpackChunkName: "login" */ "@/views/quality/performanc/index.vue"
            ),
    meta: { title: "绩效考核管理", requiresAuth: false },
  },
  {
    path: "/quality/performanc/add",
    name: "quality-performanc-add",
    component: () =>
        import(
            /* webpackChunkName: "login" */ "@/views/quality/performanc/subPage/index.vue"
            ),
    meta: { title: "新增奖惩记录", requiresAuth: false },
  },
  // {
  //   path: "/construction",
  //   name: "construction",
  //   redirect: "/construction/project-application",
  //   meta: {
  //     title: "施工协同管理",
  //   },
  //   children: [
  //     {
  //       path: "/construction/project-application",
  //       name: "/construction/project-application",
  //       component: () =>
  //         import(
  //           /* webpackChunkName: "login" */ "@/views/construction/project-application/index.vue"
  //         ),
  //       meta: { title: "施工项目管理-申请", requiresAuth: true },
  //     },
  //     {
  //       path: "/construction/project-review",
  //       name: "/construction/project-review",
  //       component: () =>
  //         import(
  //           /* webpackChunkName: "login" */ "@/views/construction/project-application/index.vue"
  //         ),
  //       meta: { title: "施工项目管理-审核", requiresAuth: true },
  //     },
  //     {
  //       path: "/construction/review",
  //       name: "/construction/review",
  //       component: () =>
  //         import(
  //           /* webpackChunkName: "login" */ "@/views/construction/project-application/review.vue"
  //         ),
  //       meta: { title: "施工项目审核", requiresAuth: true },
  //     },
  //     {
  //       path: "/construction/add",
  //       name: "/construction/add",
  //       component: () =>
  //         import(
  //           /* webpackChunkName: "login" */ "@/views/construction/project-application/add.vue"
  //         ),
  //       meta: { title: "新增施工项目申请", requiresAuth: true },
  //     },
  //     {
  //       path: "/construction/details",
  //       name: "/construction/details",
  //       component: () =>
  //         import(
  //           /* webpackChunkName: "login" */ "@/views/construction/project-application/details.vue"
  //         ),
  //       meta: { title: "施工项目详情", requiresAuth: true },
  //     },
  //     {
  //       path: "/construction/project-supervise",
  //       name: "/construction/project-supervise",
  //       component: () =>
  //         import(
  //           /* webpackChunkName: "login" */ "@/views/construction/project-supervise/index.vue"
  //         ),
  //       meta: { title: "施工监管", requiresAuth: true },
  //     },
  //     {
  //       path: "/construction/project-supervise/see",
  //       name: "/construction/project-supervise/see",
  //       component: () =>
  //         import(
  //           /* webpackChunkName: "login" */ "@/views/construction/project-supervise/components/seedemo/index.vue"
  //         ),
  //       meta: { title: "查看", requiresAuth: true },
  //     },
  //     {
  //       path: "/construction/project-supervise/inspect",
  //       name: "/construction/project-supervise/inspect",
  //       component: () =>
  //         import(
  //           /* webpackChunkName: "login" */ "@/views/construction/project-supervise/components/inspectdemo/index.vue"
  //         ),
  //       meta: { title: "检查", requiresAuth: true },
  //     },
  //     {
  //       path: "/construction/project-exception",
  //       name: "/construction/project-exception",
  //       component: () =>
  //         import(
  //           /* webpackChunkName: "login" */ "@/views/construction/project-exception/index.vue"
  //         ),
  //       meta: { title: "施工异常管理", requiresAuth: true },
  //     },
  //     {
  //       path: "/construction/project-change",
  //       name: "/construction/project-change",
  //       component: () =>
  //         import(
  //           /* webpackChunkName: "login" */ "@/views/construction/project-change/index.vue"
  //         ),
  //       meta: { title: "施工变更管理", requiresAuth: true },
  //     },
  //     {
  //       path: "/construction/project-archives",
  //       name: "/construction/project-archives",
  //       component: () =>
  //         import(
  //           /* webpackChunkName: "login" */ "@/views/construction/project-archives/index.vue"
  //         ),
  //       meta: { title: "施工档案管理", requiresAuth: false },
  //     },
  //   ],
  // },
];

const routesStatic: Array<RouteRecordRaw> = [
  {
    path: "/map",
    component: () => import("@/views/Example/index.vue"),
  },
  {
    path: "/",
    redirect: clientSetting.redirect.path,
  },
  {
    // tips：删除这条路由前请修改`@/config/client-setting`文件下默认路由!!!
    path: "/home",
    name: "home",
    component: () =>
      import(/* webpackChunkName: "home" */ "@/views/HomeView.vue"),
    meta: { title: "demo", requiresAuth: false },
  },
  {
    path: "/example",
    name: "example",
    component: () =>
      import(/* webpackChunkName: "example" */ "@/views/Example/index.vue"),
    meta: { title: "项目示例", requiresAuth: true },
  },
  {
    path: "/developing/:id?",
    name: "/developing",
    component: () =>
      import(/* webpackChunkName: "error_404" */ "@/views/Error/developing.vue"),
    meta: { title: "developing", requiresAuth: true },
  },
  {
    path: "/form-preview",
    name: "formPreview",
    component: () =>
      import(
        /* webpackChunkName: "formPreview" */ "@/views/FormRender/index.vue"
      ),
    meta: { title: "表单预览", requiresAuth: true },
  },
  {
    path: "/login",
    name: "login",
    component: () =>
      import(/* webpackChunkName: "login" */ "@/views/Login/index-v2.vue"),
    meta: { title: "登录页", hideMenu: true },
  },
  {
    path: "/demo",
    name: "demo",
    component: () =>
      import(/* webpackChunkName: "login" */ "@/views/Demo/index.vue"),
    meta: { title: "表格", requiresAuth: true },
  },
  {
    path: "/403",
    name: "error_403",
    component: () =>
      import(/* webpackChunkName: "error_403" */ "@/views/Error/403.vue"),
    meta: { title: "403", hideMenu: true },
  },
  {
    path: "/404",
    name: "error_404",
    component: () =>
      import(/* webpackChunkName: "error_404" */ "@/views/Error/404.vue"),
    meta: { title: "404", hideMenu: true },
  },
  {
    path: "/500",
    name: "error_500",
    component: () =>
      import(/* webpackChunkName: "error_500" */ "@/views/Error/500.vue"),
    meta: { title: "500", hideMenu: true },
  },
  {
    path: "/:pathMatch(.*)*",
    name: "NotFound",
    redirect: "/404",
  },
];
const routes: Array<RouteRecordRaw> = [...microAppRoutes,...routesPage, ...routesStatic];
const router = createRouter({
  history: createWebHashHistory(),
  routes,
});

export default router;
